package main

import "fmt"

var container = []string{"ZERO", "ONE", "TWO"}

func main() {
	container := map[int]string{0: "zero", 1: "one", 2: "two"}
	switch v := interface{}(container).(type) {
	case []string:
		fmt.Println("[]string:", v)
	case map[int]string:
		fmt.Println("map[int]string:", v)
	default:
		fmt.Printf("ERROR: 类型断言失败 %T\n", container)
		return
	}
}